// import axios from "axios"

import axios from "axios";
import { http } from "../../utils/http";

export const increment = (step) => ({ type: "increment", step });
export const decrement = (step) => ({ type: "decrement", step });

export const incrementAsync = ({ mobile, code }) => {
  return async (dispatch) => {
    //  setTimeout(()=>{
    //   dispatch(increment(step))
    //  }, 1000)
    //    const res = await http.post('/authorizations',{
    //         mobile,
    //         code
    //     })

    const res = await http.get("/user/profile");
    // localStorage.setItem('token', res.data.token)
  };
};
